package cn.tedu.service;

import cn.tedu.dao.CarDao;
import cn.tedu.pojo.car;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Administrator
 */
@Service
public class CarServiceImpl implements CarService{
    @Autowired
    private CarDao carDao;


    @Override
    public List<car> selectlist() {
        return carDao.selectlist();
    }

    @Override
    public List<car> selectById(Integer id) {
        return carDao.selectById(id);
    }

    @Override
    public void insert(car car) {
        carDao.insert(car);
    }


}
